<#macro page pm>

	<div class="my_newlayerpage">
        <div>
        		<div class="layui-laypage">
            		
            		<#if pm.currentPage != pm.first>
			    <a href="${pm.url}${pm.previous}" ><em>←</em></a> 
			    <#else>
			   <a href="javascript:;" class="layui-disabled"><em>←</em></a> 
			    </#if>
            		
            		
            		 <#if pm.currentPage != pm.first>
			    <a href="${pm.url}${pm.first}" >首  页</a> 
			    <#else>
			     <a href="javascript:;" class="layui-disabled">首页</a>
			    </#if>
            		
            		
            		<#list pm.pageList as pageNum>
			    <#if pm.currentPage == pageNum>
			    <span class="layui-laypage-curr">
            			<em class="layui-laypage-em"></em>
            			<em>${pageNum}</em>
            		</span>
			    
			    <#else>
			     <a href="${pm.url}${pageNum}">${pageNum}</a>
			    </#if>
			    </#list>
            		
            		
            		
            		<#if pm.currentPage != pm.last>
			    <a href="${pm.url}${pm.last}">尾页</a>
			    <#else>
			     <a href="javascript:;" class="layui-disabled">尾页</a>
			    </#if>
            		
            		<#if pm.currentPage != pm.last>
			    <a href="${pm.url}${pm.next}"><em>→</em></a>
			    <#else>
			     <a href="javascript:;" class="layui-disabled"><em>→</em></a>
			    </#if>
            		
        		</div>
        	</div>
    </div>
    
</#macro> 